<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of vMenu
 *
 * @author Rolland
 */
class vMenu {
    public function afficher($base){
        echo '<div id="menu">
                    <ul id="menuDeroulant">
                            <li><a href="?do=consulter">Accueil</a></li>
                            <li><a href="#">Articles</a>
                                    <ul class="sousMenu">';
        for ($i = 0; $i < count($base); $i++){
            echo '<li><a href="?do=consulter&id='.$base[$i]['id'].'&site='.$base[$i]['site'].'">'.$base[$i]['site'].'</a></li>';
        }
        echo '<li><a href="?do=ajouter">Ajouter</a></li>';
        echo                          '</ul>
                            </li>
                            <li><a href="?do=choisirJour&es=entree">Entr&eacute;es</a></li>
                            <li><a href="?do=choisirJour&es=sortie">Sorties</a></li>
                    </ul>
            </div>';
    }
}

?>
